package com.qf.day01boot01hello;

import org.springframework.web.client.RestTemplate;

public class Demo01 {

    public static void main(String[] args) {

        RestTemplate restTemplate= new RestTemplate();
        String url = "http://bang.dangdang.com/books/hotbang";

        String info = restTemplate.getForObject(url, String.class);
        System.out.println(info);

    }
}
